<?php
class customblock_1 extends Update_Model_Database_AbstractChange{

	protected $comment="Создание таблицы customblock";

	public function up(){
		$sql=
			"CREATE TABLE `customblock` (
			  `id` int(11) NOT NULL auto_increment,
			  `label` text,
			  `active` tinyint(1) default '1',
			  `alias` text,
			  `text` text,
			  PRIMARY KEY  (`id`)
			) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
		$this->db->query($sql);
	}

	public function down(){
		$sql='DROP TABLE IF EXISTS customblock;';
		$this->db->query($sql);
	}

}